//
//  CPSCGradualChangeCell.m
//  CollTest
//
//  Created by codew on 11/22/21.
//

#import "CPSCGradualChangeCell.h"

#import "CPSCVerticalAndTransverseMarkView.h"

@interface CPSCGradualChangeCell ()

@property (weak, nonatomic) IBOutlet UIView *viewLeftSuper;
@property (weak, nonatomic) IBOutlet UIView *viewRightSuper;

@property (nonatomic, strong) CPSCVerticalAndTransverseMarkView * viewMarkVertical;
/** 横向标签 */
@property (nonatomic, strong) CPSCVerticalAndTransverseMarkView * viewMarkTransverse;
@end

@implementation CPSCGradualChangeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    [self initSubviews];
    [self makeContraints];
}



- (void)initSubviews
{
    
    [self.viewLeftSuper addSubview:self.viewMarkVertical];
    [self.viewRightSuper addSubview:self.viewMarkTransverse];
    [self deBugUI];
}

- (void)makeContraints {
 
    [self.viewMarkVertical mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];
    
    [self.viewMarkTransverse mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.bottom.mas_equalTo(0);
    }];


}

- (void)deBugUI
{
    //    self.viewHtmlContentSuper.backgroundColor = kCPSCRandomColor;
    //    self.lblContent.backgroundColor = kCPSCRandomColor;
}

- (void)updateCellWithItem:(id)item
{
    NSArray * titleArr = @[
    
        @"牛逼",
        @"牛叉哄哄",
        @"你猜",
        @"你叉叉",
    ];
    NSArray * titleArr2 = @[
    
        @"牛逼",
        @"牛叉哄哄",
        @"你猜",
        @"你叉叉",
        @"牛逼",
        @"牛叉哄哄",
        @"你猜",
        @"你叉叉",
        @"牛逼",
        @"牛叉哄哄",
        @"你猜",
        @"你叉叉",
        @"牛逼",
        @"牛叉哄哄",
        @"你猜",
        @"你叉叉",
    ];
    [self.viewMarkVertical updateVerticalViewWithTitles:titleArr];
    
    [self.viewMarkTransverse updateTransverseViewWithTitles:titleArr2];
}
#pragma mark - Getter Setter

- (CPSCVerticalAndTransverseMarkView *)viewMarkVertical
{
    if (!_viewMarkVertical) {
        _viewMarkVertical = [[CPSCVerticalAndTransverseMarkView alloc] init];
    }
    return _viewMarkVertical;
}

- (CPSCVerticalAndTransverseMarkView *)viewMarkTransverse
{
    if (!_viewMarkTransverse) {
        
        _viewMarkTransverse = [[CPSCVerticalAndTransverseMarkView alloc] init];
    }
    return _viewMarkTransverse;
}
@end
